package com.demo.tx.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cyj
 */
@FeignClient(url = "127.0.0.1:8864", name = "service-tx")
public interface SeataXAControllerClient {

    @GetMapping("/insert/{userId}")
    void insert(@PathVariable("userId") Long userId);

    @GetMapping("/insertError/{userId}")
    void insertError(@PathVariable("userId") Long userId);
}
